/**
 * This file is part of ossecdb-extjs.
 *
 * Copyright (C) 2011 Brendan Johnston
 *
 * Contact: brendan@johnston.net.au
 *
 * Project: http://code.google.com/p/ossecdb-extjs/
 *
 * License: http://www.gnu.org/licenses/gpl-3.0.html
 */

Ext.define('OssecWeb.view.Viewport', {
	
	extend: 'Ext.container.Viewport',

    requires: [
        'OssecWeb.view.location.Tree',
        'OssecWeb.view.alert.Panel',
        'OssecWeb.view.alert.Grid'
    ],

	layout: 'border',

	items: [{
		
		stateId: 'sLocationTree',
		stateful: true,

		xtype:'locationtree',
		region: 'west',
		split: true,
		width: 220,
		minWidth: 100,
		maxWidth: 450,
		collapsible: true,
        collapseDirection: Ext.Component.DIRECTION_LEFT,
		animCollapse: true,
		margins: '5 0 5 5',
		layout: 'fit'
	},{
		
		stateId: 'sAlertPanel',
		stateful: true,

		xtype: 'alertpanel',
		region: 'center',
		layout: 'fit',
		margins: '5 5 5 0'
	}]
});